Difference between revisions of "Sandbox5"

From MarineLives
Jump to: navigation, search
(Created page with "'''This Sandbox page is to experiment with using forms to create tables''' For background see: [https://www.semantic-mediawiki.org/wiki/Help:Use_the_template_format_to_create...")
 
Line 4: Line 4:
  
 
----
 
----
Step One: Create query as normal
+
'''Step One: Create query as normal'''
 
<pre><nowiki>
 
<pre><nowiki>
  
Line 28: Line 28:
 
}}
 
}}
 
----
 
----
Step two: Creating a template
+
'''Step two: Creating a template'''
  
 
See [https://www.semantic-mediawiki.org/wiki/Help:Semantic_templates Help:Semantic templates]
 
See [https://www.semantic-mediawiki.org/wiki/Help:Semantic_templates Help:Semantic templates]
 +
 +
<nowiki>See useful Youtube video on creating templates: [https://www.youtube.com/watch?v=MEvffUFGYUE Kristin McMurray, Wiki Templates]
 +
 +
In this video a simple template called "Template:Sample1" is created.
 +
 +
The template displays text in red.
 +
 +
The template is called {{Sample1}}</nowiki>
 +
 +
Here are the results of the template:
 +
{{Sample1}}

Revision as of 11:26, July 21, 2016

This Sandbox page is to experiment with using forms to create tables

For background see: Help:Use the template format to create tabular output



Step One: Create query as normal


{{#ask: [[Category:Semantic biography]]
 |?Firstname
 |?Lastname
 |?Occupation
 |?Birth place
 |format=table
 |sort=Lastname
 |order=ascending
}}
 FirstnameLastnameOccupationBirth place
Thomas AdamsThomasAdamsGentleman
David AdamsoneDavidAdamsoneMariner
Robert AdlingtonRobertAdlingtonLighterman
Christian AelstChristianAelstMerchant
William AllenWilliamAllenMariner
Manoel AlvaresManoelAlvaresSteward
William AndersonWilliamAndersonMariner
Thomas AnneleyThomasAnneleyMariner
James AnselmJamesAnselmMariner
Robert ArcherRobertArcherGrocer
Edward ArlibearEdwardArlibearMariner
Thomas ArvillThomasArvillCooper
Joseph AsheJosephAsheMerchant
Thomas AstinThomasAstinMariner
Richard AtkinsonRichardAtkinsonEmbroiderer
John AugustineJohnAugustineMerchant
Peter AylwardPeterAylwardMerchant
Alexander BaareffoottAlexanderBaareffoottCooper
Henderijck BackerHenderijckBackerMariner
Richard BaddelyRichardBaddeleyFishmongerUnknown
William BaddisonWilliamBaddisonMariner
John BakerJohnBakerMariner
James BaldwinJamesBaldwinVintner
William BallowWilliamBallowFerryman
Martin BandMartinBandMariner
William BarberWilliamBarberMariner
John BaretsonJohnBaretsonMariner
John BarfootJohnBarfootMariner
John BarleyJohnBarleyWaterman
John BarrellJohnBarrellShipwright
John BarrellJohnBarrellShipwright
Edward BartonEdwardBartonMerchant
George BascumGeorgeBascumMariner
Johannes BasfordJohannesBasfordTobacconist
Thomas BasseThomasBasseMariner
William BassettWilliamBassettGrasier
Joos BatemanJoosBatemanMerchant
John BatesJohnBatesMariner
Richard BatsonRichardBatsonMerchant
Michell BattenMichellBattenMariner
David BaylyDavidBaylyMariner
Elias BeakeEliasBeakeMerchant
Andrew BeakeAndrewBeakeLooking glass maker
Adam BealeAdamBealeShipwright
Richard BeardRichardBeardWinecooper
Thomas BedhamThomasBedhamMariner
Erasmus BedlooErasmusBedlooMerchant
Thomas BeeThomasBeeMariner
Robart BeebeeRobartBeebeeWaterman
Richard BelchamberRichardBelchamberMerchant
... further results



Step two: Creating a template

See Help:Semantic templates

See useful Youtube video on creating templates: [https://www.youtube.com/watch?v=MEvffUFGYUE Kristin McMurray, Wiki Templates] In this video a simple template called "Template:Sample1" is created. The template displays text in red. The template is called {{Sample1}}

Here are the results of the template:
This is red text. It is very pretty.