Template:Character portal cell: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 20: | Line 20: | ||
FIRST CHARACTER NAME | FIRST CHARACTER NAME | ||
-->{{#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 = [[ | -->{{#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: {{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 = [[ | -->{{#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 |
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. |