There are two ways to attribute open license text in Wikipedia, either through the Visual editor or the Source editor.
=== Attributing open license text in Visual editor ===
Copy and paste the open license text into a Wikipedia article.
Create a section called Sources above the References section and click Insert on the editing toolbar and select Template.
Paste Free-content attribution into the box, click the first option and then click add template
Add the relevant information into the Title, Author, Publisher, Source, URL, License statement URL (if not stated within the document) fields and License (e.g CC-BY-SA).
Click Save Page and add added open license text, see the Sources section for more information to the edit summary.
Attributing open license text in Source Editor
Copy and paste the open license text into a Wikipedia article.
Create a Sources section above the References section and paste in:
{{Free-content attribution|
|title = <!-- The title of the work -->
|author = <!-- The author of the work -->
|publisher = <!-- The publisher of the work -->
|source= <!-- The the source of the work if not from the publisher or the author -->
|documentURL = <!-- The URL of the work -->
|License statement URL = <!-- The URL of the license statement of the work if not included within the document -->
|license = <!-- The license of the work -->
}}
Fill in the relevant fields, the text between the <!-- --> is simply for guidance, it will not appear
Click Save Page and add added open license text, see the Sources section for more information to the edit summary.