Template:Character portal cell: Difference between revisions
No edit summary |
mNo edit summary |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:offsetimage| {{trim|{{#expr: {{{page|1}}} * 15 - 15}} }}{{#vardefine:image|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{{series|1}}} | film | movie | | {{#vardefine:offsetimage|<!-- | ||
-->{{trim |<!-- | |||
-->{{#expr: {{{page|1}}} * 15 - 15 <!-- | |||
-->}}<!-- | |||
-->}} | |||
}}<!-- | |||
-->{{#vardefine:image|<!-- | |||
-->{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{lc: {{{series|1}}} }} | film | movie | stargate = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate (film)]] | aot | ark of truth | stargate: the ark of truth = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: The Ark of Truth]] | sc | continuum | stargate: continuum = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: Continuum]] | 1 | sg1 | sg-1 | stargate sg-1 = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | a | atl | sga | atlantis | stargate atlantis = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | u | sgu | universe | stargate universe = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Universe{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] }}<!-- | |||
-->| {{#switch: {{lc: {{{series|1}}} }} | #default = ?Infobox image | film | movie | stargate = ?Stargate infobox image | aot | ark of truth | stargate: the ark of truth = ?Stargate: The Ark of Truth infobox image | sc | continuum | stargate: continuum = ?Stargate: Continuum infobox image | 1 | sg1 | sg-1 | stargate sg-1 = ?Stargate SG-1 Season {{{season|1}}} infobox image | a | atl | sga | atlantis | stargate atlantis = ?Stargate Atlantis Season {{{season|1}}} infobox image | u | sgu | universe | stargate universe = ?Stargate Universe Season {{{season|1}}} infobox image }} # -<!-- | |||
-->| link = none<!-- | |||
-->| format = list<!-- | |||
-->| template = No link<!-- | |||
-->| offset = {{#var:offsetimage}}<!-- | |||
-->| limit = 1<!-- | |||
-->| searchlabel =<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
FIRST CHARACTER NAME | FIRST CHARACTER NAME | ||
-->{{#vardefine:firstcharacter|{{trim|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{{series|1}}} | film | movie | | -->{{#vardefine:firstcharacter|{{trim|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{lc: {{{series|1}}} }} | film | movie | stargate = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate (film)]] | aot | ark of truth | stargate: the ark of truth = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: The Ark of Truth]] | sc | continuum | stargate: continuum = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: Continuum]] | 1 | sg1 | sg-1 | stargate sg-1 = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | a | atl | sga | atlantis | stargate atlantis = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | u | sgu | universe | stargate universe = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Universe{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] }} | ?Name # - | link = none | format = template | template = No link | offset = {{#var:offsetimage}} | limit = 1 | searchlabel = }} }} }}<!-- | ||
LAST CHARACTER NAME | LAST CHARACTER NAME | ||
-->{{#vardefine:offsetlastcharacter| {{#ifeq: {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} > {{#expr: {{{page|1}}} * 15 - 1 }} }} | 1 | {{#expr: {{{page|1}}} * 15 - 1 }} | {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} - 1 }} }} }}{{#vardefine:lastcharacter|{{trim|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{{series|1}}} | film | movie | | -->{{#vardefine:offsetlastcharacter| {{#ifeq: {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} > {{#expr: {{{page|1}}} * 15 - 1 }} }} | 1 | {{#expr: {{{page|1}}} * 15 - 1 }} | {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} - 1 }} }} }}{{#vardefine:lastcharacter|{{trim|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{lc: {{{series|1}}} }} | film | movie | stargate = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate (film)]] | aot | ark of truth | stargate: the ark of truth = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: The Ark of Truth]] | sc | continuum | stargate: continuum = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::Stargate: Continuum]] | 1 | sg1 | sg-1 | stargate sg-1 = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate SG-1{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | a | atl | sga | atlantis | stargate atlantis = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Atlantis{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] | u | sgu | universe | stargate universe = [[{{Appearance type|{{{type|mi}}}<!-- appearance type -->}}::<q>[[Season::Stargate Universe{{#if: {{{season|}}} |  Season {{{season|}}} }}]]</q>]] }} | ?Name # - | link = none | format = template | template = No link | offset = {{#var:offsetlastcharacter}} | limit = 1 | searchlabel = }} }} }}<!-- | ||
TEXT | TEXT | ||
Line 19: | Line 36: | ||
CELL DEFINITION | CELL DEFINITION | ||
-->{{#ifeq: {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} | -->{{#ifeq: {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} > {{trim|{{#expr: {{{page|1}}} * 15 - 15}} }} }} | 1 | | ||
* {{#var:text}} | * '''Page {{{page|1}}}:''' {{#var:text}} {{#ifeq: {{{page|1}}} | 1 | ([[template:{{#switch: {{{type|g}}} | os | Os | one shot | One shot | g | G | gc | GC = One shot | mi | Mi | minor | Minor | #default = Minor }} {{#switch: {{{series|1}}} | film | movie | Stargate = Stargate | aot | AOT = Stargate: The Ark of Truth | sc | SC = Stargate: Continuum | 1 | sg1 | SG1 | SG-1 | sg-1 = Stargate SG-1 | a | A | atl | ATL | Atlantis | atlantis = Stargate Atlantis | u | U | sgu | SGU | universe | Universe = Stargate Universe }}{{#if: {{{season|1}}} |  Season {{{season|1}}} }} characters portals navbar|Link to subpages template]]) | }} | ||
** Image: {{#var:image}} | ** Image: {{#var:image}} | ||
** Link: {{#ifexist: {{#var:link}} | [[{{#var:link}}]] | {{red|{{#var:link}}}} page needs to be created}} | ** Link: {{#ifexist: {{#var:link}} | [[{{#var:link}}]] | {{red|{{#var:link}}}} page needs to be created}} | ||
| | | | ||
* There are not enough characters to create a portal page | * '''Page {{{page|1}}}:''' There are not enough characters to create a portal page | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Latest revision as of 13:26, 22 March 2022
- Page 1: From to (Link to subpages template)
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |