User:Flashjay/sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Sandbox for wiki coding and pages. | Sandbox for wiki coding and pages. | ||
<nowiki> | <nowiki> | ||
Line 17: | Line 20: | ||
|Publisher=publisher | |Publisher=publisher | ||
}}}}<!-- | }}}}<!-- | ||
-->[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]< | -->[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]</includeonly> | ||
*********************** | |||
{{#if:{{{1|}}}|not empty|empty}} | |||
Cover included | |||
http://www.comics.org/issue/293/cover/4/ | |||
{{GCDlink|Cover|293|Action Comics #1}} | |||
{{GCDlink|type=Cover|id=293|title=Action Comics #1|size=4|}} | |||
{{#vardefine:Type_Input|{{{1|{{{type}}}}}}}} | |||
<!-- | |||
-->{{#if:{{{4|{{{sequence|}}}}}}<!-- | |||
-->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/{{{4|{{{sequence}}}}}}/ {{{3|{{{title}}}}}}]<!-- | |||
-->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]}} | |||
******************************************* | |||
{{#if:{{{1|}}}|not empty|empty}} | |||
Sequence included | |||
http://www.comics.org/issue/293/#6724 | |||
{{GCDlink|Issue|293|Action Comics #1|#6724}} | |||
{{GCDlink|type=Issue|id=293|title=Action Comics #1|sequence=#6724}} | |||
<!-- | |||
-->{{#if:{{{4|{{{sequence|}}}}}}<!-- | |||
-->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/{{{4|{{{sequence}}}}}}/ {{{3|{{{title}}}}}}]<!-- | |||
-->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]}} | |||
******************************************* | |||
Template to link to either series, issue or publisher on the main GCD site. | Template to link to either series, issue or publisher on the main GCD site. | ||
Usage: {{GCDlink|Series or Issue or Publisher|NNN| | Usage: {{GCDlink|Series or Issue or Publisher|NNN|Title} | ||
or {{GCDlink|type=Series or Issue or Publisher|id=NNN|title=Title} | or {{GCDlink|type=Series or Issue or Publisher|id=NNN|title=Title} | ||
Line 40: | Line 75: | ||
2. ID=NNN Specific # for type of link; e.g. 97. | 2. ID=NNN Specific # for type of link; e.g. 97. | ||
3. TITLE. e.g. Action Comics. | 3. TITLE. e.g. Action Comics. | ||
Would need adding to the GCD Wiki: | |||
Extension:ParserFunctions | |||
(https://www.mediawiki.org/wiki/Extension:ParserFunctions) | |||
& | |||
Extension:Variables | |||
(https://www.mediawiki.org/wiki/Extension:Variables) | |||
4. Optional image parameters; will override default height constraint of 32px, so you will need to re-specify like "x20px" (height constraint) or "30px" (width constraint) or 30x20px (width x height constraints). To add additional parameters, use {{!}} to escape the pipe character to separate image parameters. See example below with the thumbnail (note: do not use thumbnail or float parameters with in-line images). | 4. Optional image parameters; will override default height constraint of 32px, so you will need to re-specify like "x20px" (height constraint) or "30px" (width constraint) or 30x20px (width x height constraints). To add additional parameters, use {{!}} to escape the pipe character to separate image parameters. See example below with the thumbnail (note: do not use thumbnail or float parameters with in-line images). | ||
Latest revision as of 22:00, 13 September 2016
Sandbox for wiki coding and pages.
<includeonly>{{#vardefine:series_or_issue_or_publisher|{{#switch:{{{1|{{{type}}}}}} |s |S |series |Series=series |i |I |issue |Issue=issue |p |P |publisher |Publisher=publisher }}}}<!-- -->[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]</includeonly> *********************** {{#if:{{{1|}}}|not empty|empty}} Cover included http://www.comics.org/issue/293/cover/4/ {{GCDlink|Cover|293|Action Comics #1}} {{GCDlink|type=Cover|id=293|title=Action Comics #1|size=4|}} {{#vardefine:Type_Input|{{{1|{{{type}}}}}}}} <!-- -->{{#if:{{{4|{{{sequence|}}}}}}<!-- -->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/{{{4|{{{sequence}}}}}}/ {{{3|{{{title}}}}}}]<!-- -->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]}} ******************************************* {{#if:{{{1|}}}|not empty|empty}} Sequence included http://www.comics.org/issue/293/#6724 {{GCDlink|Issue|293|Action Comics #1|#6724}} {{GCDlink|type=Issue|id=293|title=Action Comics #1|sequence=#6724}} <!-- -->{{#if:{{{4|{{{sequence|}}}}}}<!-- -->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/{{{4|{{{sequence}}}}}}/ {{{3|{{{title}}}}}}]<!-- -->|[http://www.comics.org/{{#var:series_or_issue_or_publisher}}/{{{2|{{{id}}}}}}/ {{{3|{{{title}}}}}}]}} ******************************************* Template to link to either series, issue or publisher on the main GCD site. Usage: {{GCDlink|Series or Issue or Publisher|NNN|Title} or {{GCDlink|type=Series or Issue or Publisher|id=NNN|title=Title} Example 1: {{GCDlink|S|97|Action Comics}} Example 2: {{GCDlink|I|293|Action Comics #1}} Example 3: {{GCDlink|P|3391|Alan Class}} Example 4: {{GCDlink|Series|97|Action Comics}} Example 5: {{GCDlink|Issue|293|Action Comics #1}} Example 6: {{GCDlink|Publisher|3391|Alan Class}} Parameters 1. TYPE of link; e.g. Series or Issue or Publisher. (Can use alternates: Series/series/S/s/Issue/issue/I/i/Publisher/publisher/P/p.) 2. ID=NNN Specific # for type of link; e.g. 97. 3. TITLE. e.g. Action Comics. Would need adding to the GCD Wiki: Extension:ParserFunctions (https://www.mediawiki.org/wiki/Extension:ParserFunctions) & Extension:Variables (https://www.mediawiki.org/wiki/Extension:Variables) 4. Optional image parameters; will override default height constraint of 32px, so you will need to re-specify like "x20px" (height constraint) or "30px" (width constraint) or 30x20px (width x height constraints). To add additional parameters, use {{!}} to escape the pipe character to separate image parameters. See example below with the thumbnail (note: do not use thumbnail or float parameters with in-line images). s: Switch sides. This moves the text to the right side of the icon. Useful for aligning the image. Usage: {{Series|NNN|Series Title}} or {{Series|id=NNN|title=Series Title}} will link to http://www.comics.org/series/NNN/ with title "Series Title". Example: {{Series|97|Action Comics}} [http://www.comics.org/series/{{{1|{{{id}}}}}}/ {{{2|{{{title}}}}}}] Usage: {{Issue|NNN|Issue Title}} or {{Issue|id=NNN|title=Issue Title}} will link to http://www.comics.org/issue/NNN/ with title "Issue Title". Example: {{Issue|293|Action Comics #1}}