Template:32color
From Wikipedia, the free encyclopedia
a0d0f0
- This templates controls color selections for a TOC template of the 1632 series
[edit] Template documentation
- Purpose
- This is a subtemplate element of tables of contents for The Grantville Gazettes individual articles
- and Ring of Fire anthologies book titles in the Ring of Fire series (aka "1632 series").
- Usage
- This template builds part of the table elements, and must be used with other wikitable elements to function properly.
template:32TOC-beg code:
<includeonly> {|style="background:#f0f0f0; width:80%; float:center; text-align:left; " {{#if:{{{1|}}}| {{!-}} bgcolor="Gold" !colspan=2 {{!}}<center>{{{1}}}</center> {{!-}} }} </includeonly>
template:32st or (32stitle) code:
|-bgcolor="#{{32color|{{{2|2}}}}}" !colspan=2|<table style="border:1px solid blue; padding: 0 2em 2ex 2em; <!-- -->width:100%; margin: 0 20% 0 20%; align:center; float:center; <!-- -->color:darkblue; background:#{{32color|{{{2|2}}}}}; "><!-- --><tr><td><big><center>{{#switch:{{uc:{{{1|}}}}}<!-- -->|1|ST|FIC|STORIES|FICTION=[[1632 series|1632-verse Fictional Stories]]<!-- -->|2|SERIAL|SERIALS|CONTINUING SERIALS|CONTINUING|SER=Continuing Serials<!-- -->|3|{{uc:Non-Fiction — Fact Essays}}|ESSAYS|NON-FICTION|FACT=Non-Fiction — Fact Essays<!-- -->|#default={{{1}}}}}</center></big></td></tr></table>
presentation for template:32st(itle) appears here when { 32st/doc } is NOT viewed directly.
template:32s code:
{{!}}- {{!}}{{#switch:{{{1|}}}|**=• {{unicode| }} <!-- is same as •{{S|5}}---><!-- "-->|*= {{unicode| }}•<!-- "-->|#default={{{1|}}}<!-- -->}} <!-- -->{{#switch:{{uc:{{{2|}}}}}<!-- "-->|EDITOR'S PREFACE=Editor's Preface|ASSISTANT EDITOR'S PREFACE=Assistant Editor's Preface<!-- "-->|#default="{{{2}}}"}}{{!!}} by <!-- "-->{{#if:{{{p|}}}|{{{p}}}|{{#if:{{{s|}}}<!-- "-->|{{16writ|s={{{s}}}|}}<!-- "-->|{{16writ|{{{3}}}|{{{4}}}|}}<!-- "-->}}<!-- -->}}
- Care and feeding of Template:32s — 'mnemonically' 32 'story' or 'section'
- Example {{32s}} basic output
- (other formating added by normal header)
{{32s|**|Suite For Four Hands|David|Carrico}} | |||
{{32s|*|Poor Little Rich Girls|p={{16writ|Paula|Goodlett}} and {{!-!}}colspan=2{{!}}{{16writ|Gorg|Huff}}
{{32s|*|What Replaces the SRG?|s=Grantville Firearms Roundtable}} |
Example of 32s expansion in table after this cell, how-to shown above: | ||
• Suite For Four Hands | by David Carrico |
{{32s|*|Poor Little Rich Girls|p=Paula Goodlett and Gorg Huff |
|
• What Replaces the SRG? | by Grantville Firearms Roundtable |
- Examples
- See Grantville Gazette V (first use and development) for example.
- Sample look
Table of Contents |
|
---|---|
The effect of Template 32TOC-beg is the above, the background, limits and frame, etc. | |
Table title 1 | author link for that here |
Table title 2 | author link for that here |
Table title 3 | author link for that here |
The effect of template (32st) follows: | |
Argument-1 {{{1}}} | |
Table section 2 title 1 | author link for that here |
Table section 2 title 2... | author link for that here |
- Related
- (This is common usage of all)
1632 series anthologies TOC subtemplates | ||
---|---|---|
• | — | Begins the table and provides formatting |
• | — | 'mnemonically' 32 'story' or 'section' |
• | — | aka redirect Template:32stitle; used for TOC section titles |
• | — | -- look up table 'switch' template for color selection |
• Template:32TOC-end —implemented as a redirect, just aliases " |}
"