Difference between revisions of "Sandbox9"
(→Copied Template from "Structural Wiki") |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''This sandbox page is for practising creating and using Templates and Forms''' | '''This sandbox page is for practising creating and using Templates and Forms''' | ||
+ | ---- | ||
+ | __TOC__ | ||
+ | ---- | ||
+ | ==Copied Template from "Structural Wiki"== | ||
+ | |||
+ | <pre> | ||
+ | <br /> | ||
+ | <table align="center" width="100%" cellpadding="5" style="background-color:#CCFFFF;border:1px solid #ccc"> | ||
+ | |||
+ | <tr style="background-color:#99CCFF"> | ||
+ | <td style="text-align: center" colspan="2">[[Main_Page|Home]] > <b>Resources</b> <span class="plainlinks" style="font-size: 70%">[{{Url script}}Template:Resources&action=edit e]</span></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Overview</td> | ||
+ | <td align="left">[[Category:Semantic biography|Semantic biographies]] {{dot}} [[Category:Semantic parish|Semantic parishes]]</td> | ||
+ | </tr> | ||
+ | |||
+ | </table> | ||
+ | </pre> | ||
+ | |||
+ | <br /> | ||
+ | <table align="center" width="100%" cellpadding="5" style="background-color:#CCFFFF;border:1px solid #ccc"> | ||
+ | |||
+ | <tr style="background-color:#99CCFF"> | ||
+ | <td style="text-align: center" colspan="2">[[Main_Page|Home]] ></span></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Overview</td> | ||
+ | <td align="left">[[Category:Semantic biography]] {{dot}} [[Category:Semantic parish]]</td> | ||
+ | </tr> | ||
+ | |||
+ | </table> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==Semantic drilldown== | ||
+ | |||
+ | See [https://www.mediawiki.org/wiki/Extension:Semantic_Drilldown Mediawiki:ExetensionSemantic Drilldown] page | ||
+ | |||
+ | - This Semantic Drilldown extension seems very powerful once we have semanticised our wiki | ||
+ | |||
+ | - [https://www.mediawiki.org/wiki/Extension:Semantic_Drilldown#/media/File:Semantic-drilldown-page.gif Screenshot of Semantic drilldown results page] | ||
+ | - Displayoptions include Tag-cloud-style display and also display of data on maps | ||
+ | -- Map display of results would be very powerful when searching biographies | ||
+ | -- See [https://www.mediawiki.org/wiki/Extension:Semantic_Drilldown#/media/File:Semantic-drilldown-with-map.gif screen shot of Browsing data:Cities] with icons on maps marking data | ||
+ | |||
+ | - See [http://www.epsa-projects.eu/index.php?title=Special:BrowseData/ProjectsExample: European Public Sector Award SMW site with Drilldown] | ||
+ | --The EPSA drill down analyses 825 projects with 7 filters (1) Award year (2) Award category (3) Award type (4) Sector (5)Type of activity (6) Level of Government(7) Country | ||
+ | --We could do something similar to drill down through 3000+ semantic biographies filtered by (1) Occupation (2) Geography (3) Age (4) Volume (e.g. HCA 13/71, HCA 13/72) (5) Year of deposition (6) Document type (Depositions, Personal Answers, Act Books, Miscellaneous) | ||
+ | ---- | ||
+ | |||
+ | ==Tagcloud== | ||
+ | |||
+ | See [http://edutechwiki.unige.ch/en/Semantic_Result_Formats#Examples_of_Semantic_Result_Formats Edutech wiki - Semantic Result Formats] | ||
+ | |||
+ | To work this reqyures "Semantic Results Formats" extension | ||
+ | |||
+ | <pre> | ||
+ | {{#ask: [[Category:Semantic biography]] | ||
+ | |?Occupation | ||
+ | |format=tagcloud | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | Another extension to Semantic Forms of interest is "Semantic Forms Inputs" | ||
+ | |||
+ | See Mediawiki page [https://www.mediawiki.org/wiki/Extension:Semantic_Forms_InputsExtension:Semantic Forms Inputs] | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==Welcome to the MarineLives project== | ||
+ | |||
+ | <div style="float: left; vertical-align: bottom; margin-right: 20px; margin-bottom: 20px; background:#dcdcdc; border: 1px solid #b0c4de; width: 330px;"> | ||
+ | <div style="background: #b0c4de; padding: 5px 10px 5px 10px; font-size: larger; font-weight: bold;">Four years of collaborative Public History</div> | ||
+ | <div style="padding: 10px;"> | ||
+ | <div style="font-famil:Garamond; font-size: normal;">'''The MarineLives collaborative public history project was established in 2012 to digitise, transcribe and annotate the manuscript records of the English High Court of Admiralty from the 1650s and 1660s. The original records are held at the National Archives in Kew.'''</div> | ||
+ | The project is led and advised by academics and members of the general public. | ||
+ | |||
+ | In the last four years [[Volunteers|project volunteers]] have transcribed over four million words, which are published on this wiki as full text transcriptions with accompanying metadata | ||
+ | |||
+ | The wiki has {{NUMBEROFPAGES}} wiki pages, {{NUMBEROFARTICLES}} content pages and {{NUMBEROFFILES}} manuscript images. The wiki has had {{NUMBEROFEDITS}} edits. | ||
+ | |||
+ | To learn more or to volunteer please [http://marinelives.org/contact-us.html contact us] | ||
+ | |||
+ | [[File:HCA 3 71 Credits 1.png|300px|left|thumb|The MarineLives project was launched in 2012 with the [[HCA 13/71|collaborative transcription of witness statements from 1656 and 1657]]]] | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | ---- | ||
+ | ==Useful tuition pages about Forms== | ||
+ | |||
+ | See [https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms Extension:Semantic Forms/Defining forms] | ||
+ | |||
+ | - This page explains 'for template' tag, 'end template' tag, 'field' tag, 'section' tag, and 'standard input' tag | ||
+ | - Particularly useful tips are: | ||
+ | -- Use of default= in 'field' tag | ||
+ | -- Use or rows=, columns= to determine size of text boxes, ditto 'autogrow' | ||
+ | |||
+ | ---- | ||
+ | ==Linking to Forms== | ||
+ | |||
+ | See [https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Linking_to_forms Extension:Semantic Forms/Linking to forms] | ||
+ | |||
+ | This input box enables the user to create a new page or to edit an existing page using the "two-step process" by specifying the Form with which to create or edit the page: | ||
+ | |||
+ | The code is as follows: | ||
+ | |||
+ | <pre> | ||
+ | <nowiki>{{#forminput:form=|size=|default value=|button text=}}</nowiki> | ||
+ | </pre> | ||
+ | |||
+ | {{#forminput:form=|size=|default value=|button text=|popup}} | ||
+ | |||
+ | The advantage of the two-step process is that it checks that a page name does not already exist, and thus avoids overwriting an existing page in error. | ||
+ | |||
+ | The alternative "one-step process" uses <code>#formlink</code> instead of <code>#forminput</code> | ||
+ | |||
+ | Useful arguments for both the two-step and the one-step process are: | ||
+ | |||
+ | <code>form=</code> If left empty a drop down menu appears to select form; but if specified user goes to specified form | ||
+ | |||
+ | For example: | ||
+ | |||
+ | <pre> | ||
+ | <nowiki>{{#forminput:form=SemBioLongInfoBoxThreeWithBanner|size=|default value=|button text=}}</nowiki> | ||
+ | </pre> | ||
+ | |||
+ | This creates the following input box and button: | ||
+ | |||
+ | {{#forminput:form=SemBioLongInfoBoxThreeWithBanner|size=|default value=|button text=}} | ||
+ | |||
+ | <code>size=</code> Specifies the size of the text input (default is 25) | ||
+ | |||
+ | <code>button text=</code> The text on the "submit" button - the default is "Create or edit page" | ||
+ | |||
+ | <code>popup</code> Opens the form in a popup window | ||
+ | |||
+ | <code>placeholder=</code> Specifies "placeholder" text to appear in input box | ||
+ | |||
+ | Here is an example using these three parameters | ||
+ | |||
+ | <pre> | ||
+ | <nowiki>{{#forminput:form=SemBioLongInfoBoxThreeWithBanner|size=50|default value=|placeholder=Type name of an Admiralty Court deponent|button text=Create or edit a MarineLives biography|popup}}</nowiki> | ||
+ | </pre> | ||
+ | |||
+ | {{#forminput:form=SemBioLongInfoBoxThreeWithBanner|size=50|default value=|placeholder=Type name of an Admiralty Court deponent|button text=Create or edit a MarineLives biography|popup}} | ||
+ | |||
+ | The following ommits the popup instruction: | ||
+ | |||
+ | {{#forminput:form=SemBioLongInfoBoxThreeWithBanner|size=50|default value=|placeholder=Type name of an Admiralty Court deponent|button text=Create or edit a MarineLives biography}} | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ==Problem with Forms?== | ||
Rowan (and Thierry) - Is there a problem with how Semantic Forms has been implemented, or am I making a mistake? | Rowan (and Thierry) - Is there a problem with how Semantic Forms has been implemented, or am I making a mistake? |
Latest revision as of 21:58, July 29, 2016
This sandbox page is for practising creating and using Templates and Forms
Contents
Copied Template from "Structural Wiki"
<br /> <table align="center" width="100%" cellpadding="5" style="background-color:#CCFFFF;border:1px solid #ccc"> <tr style="background-color:#99CCFF"> <td style="text-align: center" colspan="2">[[Main_Page|Home]] > <b>Resources</b> <span class="plainlinks" style="font-size: 70%">[{{Url script}}Template:Resources&action=edit e]</span></td> </tr> <tr> <td>Overview</td> <td align="left">[[Category:Semantic biography|Semantic biographies]] {{dot}} [[Category:Semantic parish|Semantic parishes]]</td> </tr> </table>
Home ></span> |