Gynopedia needs your support! Please consider contributing content, translating a page, or making a donation today. With your support, we can sustain and expand the website. Gynopedia has no corporate sponsors or advertisers. Your support is crucial and deeply appreciated.

User:CasualTaiwan/Sec

From Gynopedia
< User:CasualTaiwan
Revision as of 17:49, 4 October 2017 by CasualTaiwan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Taken from: https://en.wikisource.org/w/index.php?title=User:Sanbeg/Sec

This template is intended as a proof of concept, to demonstrate transcluding sections of articles.

To transclude larger sections, it may be more useful to split the section into a daughter page, or some other seperate page/template, then transcluding that where necessary. If you always transclude the same section, i.e. to transclude the body of text without extra boilerplate, then it should be simple to use <onlyinclude>.

However, when there are many smaller sections, it's simpler to mark the sections, and call them by name. For example, if you have a a large article with small numbered sections, marked like


 This is a sample article, with a few sections
 <onlyinclude>{{{sec1|This is the first section}}}</onlyinclude>
 <onlyinclude>{{{sec2|This is the second section}}}</onlyinclude>

Then, you could transclude section 1 with

 {{User:CasualTaiwan/Sec|Article|1}}


All text between <onlyinclude> and </onlyinclude> should be marked with a section (or marked somehow) to prevent unconditional transclusion. Of course, it's possible to have multiple <onlyinclude> blocks.
https://gynopedia.org/w/index.php?title=User:CasualTaiwan/Sec&oldid=49748
gynopedia.org
crawl=CC-MAIN-2022-21
26355
application/http; msgtype=response
sha1:NJ3VXBDPUEI5G5LRKF4REYVD6ZFIEGW6
<urn:uuid:625fb15a-a431-48c1-bb7d-70d1d17e3b40>
2022-05-17T17:13:14Z
64.225.24.214
text/html
sha1:ZSZ6MURNR4LBQEETUVES57K2ZN74FYWL
<urn:uuid:fa8b67e2-ce29-461e-8c54-c123745d4537>
https://gynopedia.org/w/index.php?title=User:CasualTaiwan/Sec&oldid=49748
response
<urn:uuid:50440026-f22f-42ec-8518-9d49b128eca3>
isPartOf: CC-MAIN-2022-21
publisher: Common Crawl
description: Wide crawl of the web for May 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-162
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/