Template:32s

From Wikipedia, the free encyclopedia

developed new width controls Lcol-width, Ccol-width and Rcol-width from GG03 need 1 Jan 2008 duplicating:
|-
|width="48%"|• Editor's Preface
|width="46%"| by [[Eric Flint]]
|width="46%"|  
[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").
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
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

The current article
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
Template:32TOC-beg (edit talk links history) Begins the table and provides formatting
Template:32s (edit talk links history) 'mnemonically' 32 'story' or 'section'
Template:32st (edit talk links history) aka redirect Template:32stitle; used for TOC section titles
Template:32color (edit talk links history) -- look up table 'switch' template for color selection

Template:32TOC-end —implemented as a redirect, just aliases " |} "