Template:Character portal cell: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
mNo edit summary |
||
| (30 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| ⚫ | |||
{{#vardefine:offsetimage| {{#expr: {{{page|1}}} * 15 - 15}} }}{{#vardefine:image|{{#ask: [[Category:Characters]] [[Character from the main reality::true]] {{#switch: {{{series|1}}} | film | movie | Stargate = [[{{#switch: {{{type|g}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate (film)]] | aot | AOT = [[{{#switch: {{{type|g}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate: The Ark of Truth]] | sc | SC = [[{{#switch: {{{type|g}}} | Ma | ma | main | Main = Main | Su | su | supporting | Supporting = Supporting | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::Stargate: Continuum]] | 1 | sg1 | SG1 | SG-1 | sg-1 = [[{{#switch: {{{type|g}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = Guest | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::<q>[[Season::Stargate SG-1{{#if: {{{season|1}}} |  Season {{{season|1}}} }}]]</q>]] | a | A | atl | ATL | sga | SGA | Atlantis | atlantis = [[{{#switch: {{{type|mi}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = Guest | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::<q>[[Season::Stargate Atlantis{{#if: {{{season|1}}} |  Season {{{season|1}}} }}]]</q>]] | u | U | sgu | SGU | universe | Universe = [[{{#switch: {{{type|g}}} | Ma | ma | main | Main = Main | re | Re | recurring | Recurring = Recurring | os | Os | one shot | One shot | g | G | gc | GC = Guest | mi | Mi | minor | Minor | #default = Minor | me | Me | mentionned | Mentionned = Mentionned }} character of::<q>[[Season::Stargate Universe{{#if: {{{season|1}}} |  Season {{{season|1}}} }}]]</q>]] }} | ?Infobox image# - | link = none | format = template | template = No link | offset = {{#var:offsetimage}} | limit = 1 | searchlabel = | mainlabel=- }} }}<!-- |
|||
-->{{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|{{#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|{{#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 |
||
-->{{#vardefine:text|''From'' |
-->{{#vardefine:text|''From'' {{#var:firstcharacter}} ''to'' {{#var:lastcharacter}} }}<!-- |
||
LINK |
LINK |
||
| Line 19: | Line 36: | ||
CELL DEFINITION |
CELL DEFINITION |
||
-->{{#ifeq: {{#expr: {{Character count| type = {{{type|g}}} | series = {{{series|1}}} | season = {{{season|1}}} }} > {{trim|{{#expr: {{{page|1}}} * 15 - 15}} }} }} | 1 | |
|||
--><noinclude> |
|||
* '''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]]) | }} |
|||
{{#var: |
** Image: {{#var:image}} |
||
** Link: {{#ifexist: {{#var:link}} | [[{{#var:link}}]] | {{red|{{#var:link}}}} page needs to be created}} |
|||
| |
|||
{{#var:image}} |
|||
* '''Page {{{page|1}}}:''' There are not enough characters to create a portal page |
|||
{{#var:link}} |
|||
| ⚫ | |||
{{#var:offsetlastcharacter}} |
|||
</noinclude><includeonly>{{!}} </includeonly>{{Character cell page |
|||
| lines = 7 |
|||
| size = {{{size|}}} |
|||
| image = {{#show:image}} |
|||
| text = Page {{{page|1}}} |
|||
| link = {{#var:link}} |
|||
| unlinkedtext = <br/>{{#var:text}} |
|||
}}<noinclude> |
}}<noinclude> |
||
{{ |
{{Documentation}}</noinclude> |
||
Latest revision as of 18:26, 22 March 2022
- Page 1: From to (Link to subpages template)
| 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. |